package sg.edu.nus.iss.vmcs.ui;

import java.util.Observable;
import java.util.Observer;

import javax.swing.JButton;

public class ObserverButton extends JButton implements Observer {

	public ObserverButton(String title) {
		super(title);
	}
	
	public void update(Observable observable, Object booleanObj) {
		boolean bool = ((Boolean) booleanObj).booleanValue();
		setEnabled(bool);
	}
}
